<div class="pageContent">
	
	<form method="post" action="<?php echo Yii::app()->createUrl('trip/add');?>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="dataForm[goods_id]" value="<?php echo $gid;?>" />
		<div class="pageFormContent" layoutH="58">

			<div class="unit">
				<label>行程名称：</label>
				<input type="text" name="dataForm[trip_name]" maxlength="30" class="required" errormsg="请输入行程名称" value=""/>
			</div>
			<div class="unit">
				<label>酒店名称：</label>
				<input type="text" name="dataForm[hotal]" maxlength="30" class="required" errormsg="请输入酒店名称" value=""/>
			</div>
			<div class="unit">
				<label>酒店星级：</label>
				<input type="text" name="dataForm[hotal_start]" maxlength="30" class="digits required" errormsg="请输入酒店星级" value=""/>
			</div>
			<div class="unit">
				<label>酒店简介：</label>
				<textarea name="dataForm[hot_pro]" class="textInput" cols="60" rows="6" errormsg="请输入酒店简介"></textarea>
			</div>
			<div class="unit">
				<label>三餐简介：</label>
				<textarea name="dataForm[food]" class="textInput" class="required" cols="60" rows="6" errormsg="请输入三餐简介"></textarea>
			</div>
			<div class="unit">
				<label>景点简介：</label>
				<textarea name="dataForm[spot]" class="textInput" cols="60" rows="6" errormsg="请输入景点简介"></textarea>
			</div>
			<div class="unit">
				<label>行程概要：</label>
				<textarea name="dataForm[trip_pro]" class="required textInput" cols="60" rows="6" errormsg="请输入行程概要"></textarea>
				<span class="info"> 如:["马德里皇宫","马约尔广场","西班牙广场","普拉多博物馆"]</span>
			</div>
			<div class="unit">
				<label>详情介绍：</label>
				<textarea class="editor" name="dataForm[detail]" rows="20" cols="100"
							upLinkUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upLinkExt="zip,rar,txt" 
							upImgUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upImgExt="jpg,jpeg,gif,png" 
							upFlashUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upFlashExt="swf"
							upMediaUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upMediaExt:"avi"></textarea>				
			</div>
			<div class="unit">
				<label>排序：</label>
				<input type="text" name="dataForm[sort]" class="digits required" errormsg="请输入排序(整数)" value="1"/>
				<span class="info">&nbsp;&nbsp;数字越大越靠前</span>
			</div>
			<div class="unit">
				<label>是否显示：</label>
				<label><input type="radio" name="dataForm[is_show]" value="0" checked/>显示</label>
				<label><input type="radio" name="dataForm[is_show]" value="1"/>隐藏</label>
			</div>
			<div class="unit">
				<br/><br/>
				<dl>
					<label>图片管理：</label>
					<dd>
						<table class="list nowrap itemDetail" addButton="新增行程图片" width="100%">
						<thead>
							<tr>
								<th type="attach" name="items[#index#].attachment.fileName" fieldClass="required" lookupGroup="items[#index#].attachment" 
								lookupUrl="<?php echo Yii::app()->createUrl('UploadFile/plugin');?>" 
								lookuppk="fileName" size="12">行程图片</th>
								<th type="del" width="60">操作</th>
							</tr>
						</thead>
						<tbody></tbody>
					</table>
					</dd>
				</dl>
				<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>